<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title></title>
    <link rel="stylesheet" type="text/css" href="${path }/css/menu.css">
    <script type="text/javascript" src="${path }/js/jquery.js"></script>
    <script type="text/javascript" src="${path }/js/ddaccordion.js"></script>
    <script type="text/javascript">
    	ddaccordion.init({
    		headerclass: "expandable", //Shared CSS class name of headers group that are expandable
    		contentclass: "categoryitems", //Shared CSS class name of contents group
    		revealtype: "click", //Reveal content when user clicks or onmouseover the header? Valid value: "click", "clickgo", or "mouseover"
    		mouseoverdelay: 200, //if revealtype="mouseover", set delay in milliseconds before header expands onMouseover
    		collapseprev: true, //Collapse previous content (so only one open at any time)? true/false 
    		defaultexpanded: [0], //index of content(s) open by default [index1, index2, etc]. [] denotes no content
    		onemustopen: false, //Specify whether at least one header should be open always (so never all headers closed)
    		animatedefault: false, //Should contents open by default be animated into view?
    		persiststate: true, //persist state of opened contents within browser session?
    		toggleclass: ["", "openheader"], //Two CSS classes to be applied to the header when it's collapsed and expanded, respectively ["class1", "class2"]
			togglehtml: ["prefix", "", ""], //Additional HTML added to the header when it's collapsed and expanded, respectively  ["position", "html1", "html2"] (see docs)
			animatespeed: "normal", //speed of animation: integer in milliseconds (ie: 200), or keywords "fast", "normal", or "slow"
			oninit:function(headers, expandedindices){ //custom code to run when headers have initalized
				//do nothing
			},
			onopenclose:function(header, index, state, isuseractivated){ //custom code to run whenever a header is opened or closed
				//do nothing
			}
		});
    </script>
  </head>
  
  <body>
    <div class="arrowlistmenu">
    	<c:choose>
    		<c:when test="${sessionScope.user.category == 0}">
    			<h3 class="menuheader expandable">网关管理</h3>
	    		<ul class="categoryitems">
	    			<li><a href="${path }/partnerUpper/getPartnerUpperList.action" target="mainFrame">上游配置</a></li>
					<li><a href="${path }/gateway/getGatewayList.action" target="mainFrame">网关配置</a></li>
	    			<li><a href="${path }/filter/getFilterList.action" target="mainFrame">渠道扣量配置</a></li>
	    		</ul>
	    		<h3 class="menuheader expandable">渠道管理</h3>
				<ul class="categoryitems">
					<li><a href="${path }/partnerLower/getPartnerLowerList.action" target="mainFrame">渠道配置</a></li>
					<li><a href="${path }/router/getRouterList.action" target="mainFrame">业务配置</a></li>
				</ul>
				
				<h3 class="menuheader expandable">合作结算</h3>
				<ul class="categoryitems">
					<li><a href="${path }/balance/getGateway.action" target="mainFrame">通道结算</a></li>
					<li><a href="${path }/balance/getRouter.action" target="mainFrame">业务结算</a></li>
				</ul>
				
				<h3 class="menuheader expandable">数据分析</h3>
				<ul class="categoryitems">
					<li><a href="${path }/analysis/getProvince.action" target="mainFrame">IVR省份数据</a></li>
					<li><a href="${path }/analysis/getDetail.action" target="mainFrame">IVR详单查询</a></li>
				</ul>
				
				<h3 class="menuheader expandable">用户管理</h3>
				<ul class="categoryitems">
					<li><a href="${path }/userInfo/getUserInfoList.action" target="mainFrame">用户管理</a></li>
				</ul>
    		</c:when>
    		<c:when test="${sessionScope.user.category == 5}">
    			<h3 class="menuheader expandable">合作结算</h3>
				<ul class="categoryitems">
					<li><a href="${path }/balancePartner/getRouter.action" target="mainFrame">业务结算</a></li>
				</ul>
				
				<h3 class="menuheader expandable">数据分析</h3>
				<ul class="categoryitems">
					<li><a href="${path }/analysisPartner/getProvince.action" target="mainFrame">IVR省份数据</a></li>
					<li><a href="${path }/analysisPartner/getDetail.action" target="mainFrame">IVR详单查询</a></li>
				</ul>
    		</c:when>
    		<c:when test="${sessionScope.user.category == 10}">
    			<h3 class="menuheader expandable">外放渠道结算</h3>
				<ul class="categoryitems">
					<li><a href="${path }/balanceCaptial/getRouterBalance.action" target="mainFrame">外放渠道结算</a></li>
				</ul>
				
				<h3 class="menuheader expandable">数据结算</h3>
				<ul class="categoryitems">
					<li><a href="${path }/balanceCaptial/getCaptial.action" target="mainFrame">当月数据结算</a></li>
				</ul>
    		</c:when>
    	</c:choose>
    </div>
  </body>
</html>